<%@page import="databank.DataBank"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
#delete_result_body{
width: 700px;
border:2px dotted #B5B2FF;
margin:0 auto;
text-align: center;
padding-top:30px;
padding-bottom:30px;
}
#btn_list{
width: 70px;
height: 30px;
border: 3px dotted orange;
border-radius: 10px;
}
</style>
<script>
function btn_list(){
	location.href="index2.jsp?inc_center=./databank/list.jsp";
}

</script>
</head>
<body>
<jsp:useBean id="bankVo" class="databank.DataBankVo"/>
<jsp:setProperty property="*" name="bankVo"/>
<%
DataBank bank = new DataBank();
bank.setVo(bankVo);
%>
<div id="delete_result_body">
<%
if(bank.delete()){
	out.print("해당 글이 삭제되었습니다.");	
}else{
	out.print("요청을 처리하지 못했습니다.");
}
%>
<br/><br/>
<input type="button" value="목록" id="btn_list" onclick="btn_list()">
</div>

</body>
</html>